package lec10.pm;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
	static Scanner cin;
	static PrintWriter cout = new PrintWriter(System.out);

	static class Problem {
		static boolean solve() {
			int a = cin.nextInt();
			int b = cin.nextInt();
			if (a == 0 && b == 0)
				return false;
			cout.println(a + b);// TODO
			return true;
		}
	}

	static {
		try {
			cin = new Scanner(new File("1000.in"));
		} catch (FileNotFoundException e) {
			cin = new Scanner(System.in);
		}
	}

	public static void main(String[] args) {
		// while (cin.hasNext()&&Problem.solve());//IO1
		// for(int n=cin.nextInt();n-->0;Problem.solve());//IO2
		while (cin.hasNext() && Problem.solve())
			;// IO3
		cin.close();
		cout.close();
	}

}
